<div class="filtration">
    <?php if (!isset($hide_sort)) { ?>
        <div class="sort_by">
            <ul class="list-inline">
                <li><b>排序:</b></li>
                <li class="<?php echo $this->frontend_helper->get_query_string_active('sort', 'latest'); ?>">
                    <a href="<?php echo $url . $this->frontend_helper->get_query_string(array('sort'), array('sort' => 'latest')); ?>">
                        <i class="fa fa-location-arrow latest"></i> 最新的</a>
                </li>
                <li class="<?php echo $this->frontend_helper->get_query_string_active('sort', 'views'); ?>">
                    <a href="<?php echo $url . $this->frontend_helper->get_query_string(array('sort'), array('sort' => 'views')); ?>">
                        <i class="fa fa-eye views"></i> 浏览量</a>
                </li>
                <li class="<?php echo $this->frontend_helper->get_query_string_active('sort', 'downloads'); ?>">
                    <a href="<?php echo $url . $this->frontend_helper->get_query_string(array('sort'), array('sort' => 'downloads')); ?>">
                        <i class="fa fa-download downloads"></i> 下载量</a>
                </li>
                <li class="<?php echo $this->frontend_helper->get_query_string_active('sort', 'favourites'); ?>">
                    <a href="<?php echo $url . $this->frontend_helper->get_query_string(array('sort'), array('sort' => 'favourites')); ?>">
                        <i class="fa fa-heart favourites"></i> 收藏数</a>
                </li>
                <li class="<?php echo $this->frontend_helper->get_query_string_active('sort', 'rating'); ?>">
                    <a href="<?php echo $url . $this->frontend_helper->get_query_string(array('sort'), array('sort' => 'rating')); ?>">
                        <i class="fa fa-star rating"></i> 评分数</a>
                </li>
            </ul>
        </div>
    <?php } ?>
    <div class="timeFilter">
        <ul class="list-inline">
            <li><b>时间:</b></li>
            <li class="<?php echo $this->frontend_helper->get_query_string_active('time', 'all'); ?>">
                <a href="<?php echo $url . $this->frontend_helper->get_query_string(array('time'), array('time' => 'all')); ?>">
                    所有
                </a>
            </li>
            <li class="<?php echo $this->frontend_helper->get_query_string_active('time', 'today'); ?>">
                <a href="<?php echo $url . $this->frontend_helper->get_query_string(array('time'), array('time' => 'today')); ?>">
                    今天
                </a>
            </li>
            <li class="<?php echo $this->frontend_helper->get_query_string_active('time', '7days'); ?>">
                <a href="<?php echo $url . $this->frontend_helper->get_query_string(array('time'), array('time' => '7days')); ?>">
                    7天
                </a>
            </li>
            <li class="<?php echo $this->frontend_helper->get_query_string_active('time', '30days'); ?>">
                <a href="<?php echo $url . $this->frontend_helper->get_query_string(array('time'), array('time' => '30days')); ?>">
                    30天
                </a>
            </li>
            <li class="<?php echo $this->frontend_helper->get_query_string_active('time', '60days'); ?>">
                <a href="<?php echo $url . $this->frontend_helper->get_query_string(array('time'), array('time' => '60days')); ?>">
                    60天
                </a>
            </li>
        </ul>
    </div>
</div>